package cn.jtfadmin.activiti.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 表单新增参数
 * @author jtf
 * @since 0.0.2
 */
@Data
public class FormDesignAddPDTO implements Serializable {

    /**
     * 表单名称
     */
    @NotBlank
    @Size(max = 200)
    protected String name;

    /**
     * 模型id
     */
    @NotBlank
    protected String modelId;

    /**
     * 表单内容
     */
    protected String content;


    public FormDesignAddPDTO(@NotBlank @Size(max = 200) String name, @NotBlank String modelId, String content) {
        this.name = name;
        this.modelId = modelId;
        this.content = content;
    }

    public FormDesignAddPDTO() {
    }
}
